package summoning2;

public enum Familiar {
	THORNY_SNAIL(null, 0, null, 0, 0, 0, null);

	;

	private String name;
	private int requiredLevel;
	private String scrollName;
	private int requiredSpecial;
	private int time;
	private int inventorySpcae;
	private FamiliarType familiarType;

	private Familiar(String name, int requiredLevel, String scrollName, int requiredSpecial, int time,
			int inventorySpcae, FamiliarType familiarType) {
		this.name = name;
		this.requiredLevel = requiredLevel;
		this.scrollName = scrollName;
		this.requiredSpecial = requiredSpecial;
		this.time = time;
		this.inventorySpcae = inventorySpcae;
		this.familiarType = familiarType;
	}

	public String getName() {
		return name;
	}

	public int getRequiredLevel() {
		return requiredLevel;
	}

	public String getScrollName() {
		return scrollName;
	}

	public int getRequiredSpecial() {
		return requiredSpecial;
	}

	public int getTime() {
		return time;
	}

	public int getInventorySpcae() {
		return inventorySpcae;
	}

	public FamiliarType getFamiliarType() {
		return familiarType;
	}

	public static Familiar get(String name) {
		for (Familiar familiar : Familiar.values()) {
			if (familiar.name.equalsIgnoreCase(name)) {
				return familiar;
			}
		}

		return null;
	}
}
